<script type="text/javascript" src="${base}/scripts/htdygl/htysdycontent.js"></script>
<form id="htysdyForm" method="post"  fit="true">
    <input name="htys.id" type="hidden" value="${(htys.id)!''}"/>
    <table style="width: 100%" class="tb">
        <col width="25%"/>
        <col width="85%"/>
        <tr style="height:40px">
            <th>合同定义名称：</th>
            <td>
                <input id="htdymc_id" name="htys.htdy.mc" type="text" style="width:50%;height: 25px;"
                       class="easyui-validatebox input-text"
                       required="true"
                       autocomplete="off" value="${(htys.htdy.mc)!''}" readonly="true"/>
            </td>
        </tr>
        <tr style="height:40px">
            <th style="color:#f45212; width:100%;">合同元素名称：</th>
            <td>
                <input id="mc_id" name="htys.mc" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text"
                       required="true" autocomplete="off" value="${(htys.mc)!''}" maxlength="50"/>
            </td>
        </tr>
        <tr style="height:40px">
            <th style="width:100%;">合同元素id：</th>
            <td>
                <input id="ysid_id" name="htys.ysid" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.ysid)!''}"
                       readonly="true"/>
            </td>
        </tr>
        <tr style="height:40px">
            <th style="width:100%;">对应表字段：</th>
            <td>
                <input id="dybzd_id" name="htys.dybzd" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.dybzd)!''}"
                       readonly="true"/>
            </td>
        </tr>
        <tr style="height:40px">
            <th style="color:#f45212; width:100%;">选项类型：</th>
            <td>
                <select class="easyui-combobox input-text" data-options="panelHeight:'100'"
                        style="width:226px;height: 30px" name="htys.yxlx" id="select_id">
                    <option value="1" <#if htys.yxlx?? && htys.yxlx == 1>selected</#if>>文本</option>
                    <option value="2" <#if htys.yxlx?? && htys.yxlx == 2>selected</#if>>数据字典</option>
                    <option value="3" <#if htys.yxlx?? && htys.yxlx == 3>selected</#if>>数据集</option>
                    <option value="4" <#if htys.yxlx?? && htys.yxlx == 4>selected</#if>>日期</option>
                    <option value="5" <#if htys.yxlx?? && htys.yxlx == 5>selected</#if>>固定下拉</option>
                    <option value="6" <#if htys.yxlx?? && htys.yxlx == 6>selected</#if>>表格</option>
                </select>
            </td>
        </tr>
        <tr  id="qz_id">
            <th style="color:#f45212;width:100%;">取值： </th>
            <td>
                <input id="inputqz_id" name="inputQz" type="text" style="width:50%;height: 25px"
                       title="如果选项类型为数据集，请输入sql语句；为固定下拉，请输入1,ab,3样式"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.qz)!''}"
                       required="true"  maxlength="100"/>
                <input type="hidden" id="h_qzid" name="h_qzid" value="${(htys.qz)!''}">
            </td>
         </tr>
        <tr id="selectqz_id" >
            <th style="color:#f45212;width:100%;">取值： </th>
            <td style="margin-top: 5px">
                <select class="easyui-combobox input-text" data-options="panelHeight:'100'"
                        style="width:226px;height: 30px" name="selectQz">
                <#list sjzdsyList as sjzdsy>
                    <option value="${sjzdsy.bm}"
                            <#if  htys.qz?? && htys.qz == sjzdsy.bm>selected</#if>>${sjzdsy.mc}</option>
                </#list>
                </select>
            </td>
        </tr>
        <tr style="height:40px">
            <th <#if  htys.isread?? && htys.isread == "0">style="color:#f45212;width:100%;"</#if> id="thmrz_id">默认值：
            </th>
            <td>

                <input id="ismrz_id" name="ismrz" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.mrz)!''}"
                       maxlength="200" required="true"/>

                <input id="nomrz_id" name="nomrz" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.mrz)!''}"
                       maxlength="200"/>
            </td>
        </tr>
        <tr style="height:40px">
            <th style="width:100%;">文本长度：</th>
            <td>
                <input id="wbcd_id" name="htys.wbcd" type="text" style="width:50%;height: 25px"
                       class="easyui-validatebox input-text" autocomplete="off" value="${(htys.wbcd)!''}" maxlength="9"
                       onkeyup="value=value.replace(/[^\d]/g,'') "
                       onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))"/>
                只能输入数字
            </td>
        </tr>
        <tr style="height:40px">
            <th>是否可以修改：</th>
            <td colspan="3">
                <input type="hidden" id="isread_id" value="${(htys.isread)!''}"/>
                <input id="radio_is" type="radio" name="htys.isread" value="1"
                       checked="checked"/>是
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="radio_no" type="radio" name="htys.isread" value="0"
                       <#if  htys.isread?? && htys.isread == "0">checked="checked"</#if> />否
            </td>
        </tr>
        <tr>
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td colspan="3">
                <textarea style="width:50%;" name="htys.bz" class="textarea"
                          data-options="validType:['length[0,100]']">${(htys.bz)!}</textarea>
            </td>
        </tr>
    </table>
</form>

